﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HttpUploader5.demoDistributed.db
{
	public partial class ajax_complete : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			string md5 = Request.Form["md5"];
			string uid = Request.Form["uid"];
			string fid = Request.Form["fid"];

			//返回值。1表示成功
			int ret = 0;

			if(string.IsNullOrEmpty(md5)
				|| string.IsNullOrEmpty(uid)
				|| string.IsNullOrEmpty(fid))
			{}
			else
			{
				HttpUploaderDB db = new HttpUploaderDB();
				db.UploadComplete(md5);
				ret = 1;
			}
			Response.Write(ret);
		}
	}
}
